package sfmc.biz.daoImpl;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

import sfmc.biz.dao.SfmcOldFileListDao;
import sfmc.biz.vo.Sfmc_OLD_FILE_LIST;

@Repository("SfmcOldFileListDao")
public class SfmcOldFileListDaoImpl implements SfmcOldFileListDao{
	protected Log log = LogFactory.getLog(this.getClass());
	
	private SqlMapClientTemplate sqlMapClientTemplate;
	
	@Autowired SqlMapClientTemplate sqlMapClientTemplate2;
	public List<Sfmc_OLD_FILE_LIST> getOldRecordList(Sfmc_OLD_FILE_LIST dto) {
		return sqlMapClientTemplate2.queryForList("getOldRecordList",dto);
	}

	public int getOldRecordCount(Sfmc_OLD_FILE_LIST dto) {
		return Integer.parseInt(""+sqlMapClientTemplate2.queryForObject("getOldRecordCount",dto));
	}
}
